﻿@using SelfMadeMillionaire.Core.Enums
@{
	Layout = "~/Views/Shared/_MainLayout.cshtml";
}

<!--banner part-->
<div class="banner_part">
	<div class="container">
		<div class="row">
			<div class="banner_img">
				<div class="col-sm-8 col-md-8 col-lg-9">
					<img class="img-responsive" src="@Url.Content("~/Content/images/company_logo_1.png")" alt="" title="" />
				</div>
				@if (Request.IsAuthenticated && User.IsInRole(UserRole.Admin.ToString()))
	{
					<div class="col-sm-4 col-md-4 col-lg-3">
						<div class="reg_user_info clearfix" style="margin-bottom: 10px;">
							<p>Welcome
								<br />
								Admin</p>
						</div>
						<div class="login_btn"><a href="@Url.Action("Logout", "Account", new { area = "Admin" })" class="btn btn-danger">Logout</a></div>
					</div>
	}
			</div>
		</div>
	</div>
</div>

<!--end banner part-->
<!--header part-->
<div class="admin_header_part">
	<div class="admin_wrapper">
		@if (ViewContext.RouteData.Values["action"].ToString() != "Login")
  {
	   
			<div class="row">
                <div class="col-lg-1">
                </div>
				<div class="col-lg-10">
					<div class="admin_navigation">
						<ul>
							<li><a href="@Url.Action("Index", "Home", new { area = "" })">Site Home</a></li>
							<li><a href="@Url.Action("Index", "News")">News</a></li>
                            <li><a href="@Url.Action("Index", "Newsletters")">News Letters</a></li>
							<li><a href="@Url.Action("Index", "Publications")">Publications</a></li>
                            <li class="dropdown">
									<a href="#" class="dropdown-toggle" data-toggle="dropdown">Portfolios <b class="caret"></b></a>
									<ul class="dropdown-menu" style="min-width: 100px!important">
										<li><a href="@Url.Action("SMM", "TrackingPortfolio")">SMM Tracking Portfolio</a></li>
							            <li><a href="@Url.Action("MMM", "TrackingPortfolio")">MMM Tracking Portfolio</a></li>
                                        <li><a href="@Url.Action("Beginners101", "TrackingPortfolio")">Beginners Portfolio Options 101</a></li>
									</ul>
							</li>
						    <li><a href="@Url.Action("Index", "MailingList")">User Management</a></li>
						    <li class="dropdown">
									<a href="#" class="dropdown-toggle" data-toggle="dropdown">Emails <b class="caret"></b></a>
									<ul class="dropdown-menu" style="min-width: 100px!important">
										<li><a href="@Url.Action("Index", "EmailSend")">Send New Email</a></li>
										<li><a href="@Url.Action("EmailSendList", "EmailSend")">Sent Items</a></li>
									</ul>
							</li>
						    <li><a href="@Url.Action("Index", "Promotion")">Promotions</a></li>
                            <li class="dropdown">
									<a href="#" class="dropdown-toggle" data-toggle="dropdown">Reports <b class="caret"></b></a>
									<ul class="dropdown-menu" style="min-width: 100px!important">
										<li><a href="@Url.Action("NewUser", "Reports")">New User Report</a></li>
                                        <li><a href="@Url.Action("DailyNewUser", "Reports")">Daily New User Report</a></li>
                                        <li><a href="@Url.Action("SubscriptionPayments", "Reports")">Subscription Payments</a></li>
									</ul>
							</li>
						</ul>
					</div>
				</div>
                <div class="col-lg-1">
                </div>
			</div>
  }
	</div>
</div>

<!--end header part-->

<!--body container-->
<div class="admin_wrapper">
	<div class="row">

		<!--start admin container-->
		<div class="col-lg-12 admin_container">
			<h4 class="admin_container_ttile">@ViewBag.Title</h4>

			<div class="admin_container_body">
				@RenderBody()
			</div>
		</div>
		<!--end admin container-->

	</div>
</div>
